﻿namespace SourceCodeRepository.Web.ViewDataTransformers
{
    using System.Collections.Generic;
    using Model.Entitites;
    using Views.ViewData;

    /// <summary>
    /// Transforms a Language entity to a Language View Data.
    /// </summary>
    public class LanguageViewDataTransformer : ViewDataTransformer<LanguageViewData, Language>
    {
        protected override List<Transformer> Transforms
        {
            get
            {
                return new List<Transformer> {(x, y) => y.Description = x.Description, (x, y) => y.Id = x.Id};
            }
        }
    }
}
